<div>child</div>
<script>
  input.write('mounted');
  $signal.onabort = () => {
    input.write('destroyed')
  };
</script>